package com.xiaoxi.open.design.creation.factorymethodpattern.service.waer.factory;

import com.xiaoxi.open.design.creation.factorymethodpattern.service.waer.product.WearProduct;

import java.util.List;

/**
 * @Author xiaoxi
 * @ProjectName creation_pattern
 * @PackageName com.xiaoxi.open.design.creation.factorymethodpattern.service.waer.factory
 * @ClassName Factory
 * @Description TODO
 * @Date 2024/5/15 15:28
 * @Version 1.0
 */
public interface Factory {

    /**
     * 工厂可以制作 穿搭衣服
     *
     * @param name 产品名称
     * @return
     */
    WearProduct createProduct(String name);

    /**
     * 获取工厂里面生成的所有产品
     *
     * @return
     */
    List<WearProduct> getProducts();
}
